package decoratorPattern;

//Decorator Sprinkles that mixes sprinkles with coffee
//note it extends CoffeeDecorator
public class Sprinkles extends CoffeeDecorator {
 public Sprinkles(Coffee decoratedCoffee) {
     super(decoratedCoffee);
 }

 public double getCost() {
     return super.getCost() + 0.2;
 }

 public String getIngredients() {
     return super.getIngredients() + ingredientSeparator + "Sprinkles";
 }
}